
const routes = [
     {"path": "/", "redirect": "/login"},
     {"path": "/login", "component": login},
     {"path": "/about", "component": about},

    ];
const router = new VueRouter({
    routes
    });
//router.beforeEach((to, from, next) => {
//      if (to.meta.title) {
//       document.title = to.meta.title;
//      }
//      next();
//     });
new Vue({
    el:"#app",   //不可更改
    router: router,
    });
